package com.lry.poi;

import java.io.*;

/**
 * @author JiangJie
 * @create 2020-11-27 09:48
 */
public class TestRead {
    public static void main(String[] args) throws IOException {
        ExcelService excelService = new ExcelService();
        String fileName = "C:\\Users\\Administrator\\Desktop\\lry\\火灾\\Modbus信息表-智慧用电终端-消防专用-20200519.xls";
        excelService.importExcel(new File(fileName));
//        excelService.importSheets(fileName);
//        String fileName = "C:\\\\Users\\\\Administrator\\\\Desktop\\\\lry\\\\火灾\\\\Modbus信息表-智慧用电终端-消防专用-20200519.xls";
//        boolean isExcel2007 = false;
//        if (StringUtils.endsWithIgnoreCase(fileName, ".xlsx")) {
//            isExcel2007 = true;
//        }
//        InputStream is = new FileInputStream(new File(fileName));
//        List<ExcelReaderUtil.ExcelRow> datas = ExcelReaderUtil.readExcel(is, isExcel2007, false);
//        System.out.println(datas);

    }

}
